package p270jp.pxv.android.commonObjects.response;

import android.support.p024v4.media.C0261e;
import p270jp.pxv.android.commonObjects.model.PixivAppApiError;
import p325m0.MutabilityOwnership;

/* compiled from: PixivAppApiErrorResponse.kt */
/* renamed from: jp.pxv.android.commonObjects.response.PixivAppApiErrorResponse */
/* loaded from: classes2.dex */
public final class PixivAppApiErrorResponse {
    private final PixivAppApiError error;

    public PixivAppApiErrorResponse(PixivAppApiError pixivAppApiError) {
        this.error = pixivAppApiError;
    }

    public static /* synthetic */ PixivAppApiErrorResponse copy$default(PixivAppApiErrorResponse pixivAppApiErrorResponse, PixivAppApiError pixivAppApiError, int i, Object obj) {
        if ((i & 1) != 0) {
            pixivAppApiError = pixivAppApiErrorResponse.error;
        }
        return pixivAppApiErrorResponse.copy(pixivAppApiError);
    }

    public final PixivAppApiError component1() {
        return this.error;
    }

    public final PixivAppApiErrorResponse copy(PixivAppApiError pixivAppApiError) {
        return new PixivAppApiErrorResponse(pixivAppApiError);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof PixivAppApiErrorResponse) && MutabilityOwnership.m3749h(this.error, ((PixivAppApiErrorResponse) obj).error);
    }

    public final PixivAppApiError getError() {
        return this.error;
    }

    public int hashCode() {
        PixivAppApiError pixivAppApiError = this.error;
        if (pixivAppApiError == null) {
            return 0;
        }
        return pixivAppApiError.hashCode();
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("PixivAppApiErrorResponse(error=");
        c.append(this.error);
        c.append(')');
        return c.toString();
    }
}
